package com.bjpowernode.beans;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class NewsType {
    int id;
    @NotNull(message = "新闻类型名称不能为空")
    @Size(min = 1, max = 50, message = "新闻类型名称范围1-50")
    String name;
}
